# coding: utf-8
from pycode.admin import make_navigate
from pycode import render_to
from pycode import settings
from google.appengine.api import users

@render_to("admin/root.html")
def main(request):
	"""Отобразить список разделов админки"""
	return {
		"list_items": [view for view in settings.GLOBALS["admin_views"] if view.root_view],
		"title": "Main page",
		"on_page_title": "Main page",
		"navigate_items": make_navigate([]),
		"logout_trl": users.create_logout_url("/admin/")
	}


